package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 评论历史
 */
@Setter
@Getter
public class CommentHistory extends BaseDomain {

    private Long commentId;//评论的id

    private Long topicId;//主题id

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private Date createTime;//评论的时间

    private Integer type;//评论类型id 1 攻略 2 游记 3 用户的二级评论

    private Long pId = 0L;//父级id

    private User formUser;//一级用户

    private User toUser;//二级用户

    private String content;//评论内容

    private Integer states = 1;//评论的状态 0 屏蔽 1 未读 2 已读

    private StrategyComment strategyComment;//攻略评论冗余
    private Strategy strategy;//大攻略冗余
    private CommentHistory children;//自关联

}